<template>
  <div v-skeleton class="page  page-tabbar page-root-cart"
     >
    <div class="header flex a-center jlr">
      <div class="back" style="box-sizing: content-box; padding-right:0.7rem;"></div>
      <h2>测试接口</h2>
      <div class="back" style="width: 1.56rem;">
      </div>
    </div>
    <template>
    </template>
  </div>
</template>
<script>
  import './scss/page.root.cart.scss'
  import page from '../../mixins/page'



  export default {
    name: 'RootCategory',
    mixins: [page],
    data() {
      return {
        list: [],
      }
    },
    methods: {
      // init
      fetchPage() {
        // 参数
        const param = {
          indexClassId:1,
          pageNum:1,
          pageSize:10
        };

        //接口
        this.$ajax.test(param).then().then(
          res => {
            let list = res.data;
            this.list = list;
            console.log("data:::",this.list);
            this.loadEnd();
          },
          () => {
            this.loadError();
          }
        )
      }
    }
  }
</script>
